package com.example.tmall_springboot.controller;

import com.example.tmall_springboot.pojo.Category;
import com.example.tmall_springboot.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description:
 * @Date： 2021/7/23 4:16 下午
 * @Author: annanchen@didiglobal.com
 **/

@RestController
public class CategoryController {

    @Autowired
    CategoryService categoryService;

    public List<Category> list() throws Exception {
        return categoryService.list();
    }
}
